FROM java:8
# 上传当前目录下的jar包到容器内，会自动创建/server目录
ARG ARTIFACT_NAME
ADD target/${ARTIFACT_NAME}.jar /server/app.jar
# 设置容器工作目录为/server
WORKDIR /server
# 暴露端口
EXPOSE 8090
ENTRYPOINT ["java","-jar","app.jar"]